<?php
use think\Config;
?>
<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>
        <?php echo Config::get('appname');?>
    </title>
    <link href="/static/css/default.css" rel="stylesheet" type="text/css">
    <link href="/static/css/style/green.css" rel="stylesheet" type="text/css" id='link'>
    <style>
        html{overflow:hidden;}
</style>
</head>

<body>
    <div class="classify">{$parenttitle}</div>
    <!--toolbar start-->

    <form>
        <table class="formtable">

            <tbody>
                <tr>
                    <td class="tlabel">签到收费</td>
                    <td><input type="text" class="forminput inputstyle" id="model1" value="{$info.model1}"> &nbsp;&nbsp;元</td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="tlabel">签到+视频收费</td>
                    <td><input type="text" class="forminput inputstyle" id="model2" value="{$info.model2}"> &nbsp;&nbsp;元</td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>
             
                <tr>
                    <td class="tlabel">客服电话</td>
                    <td><input type="text" class="forminput inputstyle" id="kefuphone" value="{$info.kefuphone}"></td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">腾讯云配置</td>
                    
                </tr>
                <tr>
                    <td class="tlabel">推流域名</td>
                    <td><input type="text" class="forminput inputstyle" id="push" value="{$info.push}"></td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>
             
                <tr>
                    <td class="tlabel">播放域名</td>
                    <td><input type="text" class="forminput inputstyle" id="cdn" value="{$info.cdn}"></td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>
             
                <tr>
                    <td class="tlabel">推流API Key</td>
                    <td><input type="text" class="forminput inputstyle" id="apikey" value="{$info.apikey}"></td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="tlabel">播放API Key</td>
                    <td><input type="text" class="forminput inputstyle" id="playapikey" value="{$info.playapikey}"></td>
                    <td class="tlabel"></td>
                    <td>
                    </td>
                </tr>
             
             



            </tbody>

        </table>

        <div class="formbtn">
            <input type="button" value="保存" class="btnsave">
            <input type="button" value="重置" class="btncancel">
        </div>

    </form>

</body>
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/skin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>
    $(function () {
        $(".btnsave").click(function () {
          
            var kefuphone = $("#kefuphone").val();
            var model1= $("#model1").val();
            var model2 =$("#model2").val();
            var push =$("#push").val();
            var cdn =$("#cdn").val();
            var apikey =$("#apikey").val();
            var playapikey =$("#playapikey").val();

            $.post("/super/system/config", { kefuphone: kefuphone,model1:model1,model2:model2,push:push,cdn:cdn,apikey:apikey,playapikey:playapikey }, function (data) {
                layer.msg(data.message);
                setTimeout(function () {
                    location.reload();
                }, 1000);

            });

        });

    });
</script>

</html>